Page({
  data: {},
  // wx.request({
  // success: (result) => {},
  // fail: (err) => {},
  // complete: (res) => {},
  // }),
  Myrequest({
    url,
    method,
    data,
    header
  }) {
    return new Promise((resolve, reject) => {
      wx.request({
        url,
        method,
        data,
        header,
        success: (result) => {
          resolve(result);
        },
        fail: (err) => {
          reject(err);
        },
        complete: (res) => {},
      });
    });
  },
});